import { Tools } from 'weaver-mobile';
import * as EmailUtil from '../../util/index';
const catchApiError = EmailUtil.EmailConstant.catchApiError;

export default {
  getCondition: params =>
    Tools.callApi({ url: '/api/email/waitdeal/getEmailMobileWaitDealCondition', method: 'GET', params }).then(catchApiError),
  addOrUpdateWaitDeal: params =>
    Tools.callApi({ url: '/api/email/waitdeal/addOrUpdateWaitDeal', method: 'POST', params }).then(catchApiError),
};